-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use direct path in testpoolswap when available #1115
Conversation
Just curious, which of the following are we looking to achieve for
Asking because if (2) is preferred, the logic could instead be in |
Good question. Here I addressed the issue by going for the first option but that might not always be the best scenario.
With this additional path, a user could try for |
saw this later. I guess it could be possible that a composite swap yields more than the direct swap 🤔 |
Agree. Deeper - |
The logic behind it was that we have two different RPCs for |
Ah I see what you mean. I think just fixing the "auto" path to give the best swap (be it a direct or composite) would suffice to fix the issue at BirthdayResearch/jellyfishsdk#1065. Regarding the 'composite' option - really depends if ain would like to support this haha but there's no immediate use-case for it I believe |
What kind of PR is this?:
/kind fix
What this PR does / why we need it:
Uses direct path in testpoolswap when available
Which issue(s) does this PR fixes?:
Fixes #1114